<template>
    <div class="tuan">
      <div class="change">
          <div v-for="(item,index) in list" :key="index">{{item}}</div>
      </div>
      <div class="shop" v-for="(item,index) in tuanlist" :key="index">
          <div class="boxImg">
              <img :src="item.picture" alt="">
          </div>
          <div class="datas">
              <h3>{{item.name}}</h3>
              <div class="price">
                  <div>
                      <span>{{item.min_price}}</span>
                      <span>{{item.promotion_info}}</span>
                  </div>
                 <div>
                      <span>马上抢</span>
                      <span>{{item.month_saled_content}}</span>
                 </div>
              </div>
          </div>
      </div>
    </div>
  </template>
  
  <script>
  import {tuan_list} from '../../utils/api';
  export default {
      data(){
          return {
              list:['正在抢购','即将开抢'],
              tuanlist:[]
          }
      },
      mounted(){
      tuan_list({status:1}).then((res)=>{
        this.tuanlist=res.data.list;
        
      })
    }
  }
  </script>
  
  <style scoped>
  .change{
      width: 100%;
      display: flex;
      justify-content: space-around;
      margin-top: 60px;
  }
  .shop{
      width: 100%;
      display: flex;
      justify-content: space-around;
      margin-top: 40px;
  }
  .shop .boxImg {
      width: 20%;
  }
  .shop .boxImg img{
      width: 100%;
  }
  .shop .datas{
      width: 70%;
  }
  </style>